# 测试
a = '饲喂、接产、监产、巡栏、配种、转栏、保健去势、断奶、孕检、免疫保健、背膘测试 、其他'
b = a.split('、')
print(b)
i = 1
sql = "INSERT INTO `cloudpc_dev`.`sys_dict_item`(`id`, `dict_id`, `item_text`, `item_value`, `description`, `sort_order`" \
      ", `status`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES " \
      "('%s', '21', '%s', '%s', NULL, %s, 1, NULL, NULL, NULL, NULL);"
print(sql)
for s in b:
    # print(s)
    print(sql % ('21' + str(i).zfill(2), s, i - 1, i))
    i = i + 1
